
package com.be.beadmin.material.repository;

import com.be.beadmin.material.entity.MaterialCodeInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author zmy
* @date 2023-06-11
**/
public interface MaterialCodeInfoRepository extends JpaRepository<MaterialCodeInfo, String>, JpaSpecificationExecutor<MaterialCodeInfo> {

    MaterialCodeInfo findMaterialCodeInfoByIdAndDelete(String id, Integer delete);

    MaterialCodeInfo findMaterialCodeInfoById(String id);

    MaterialCodeInfo findMaterialCodeInfoByMaterialCodeAndDelete(String MaterialCode , Integer delete);
}